configure: do not link with pthread on Android.
authorJehan <jehan@girinstud.io>
Tue, 4 Jul 2017 12:05:34 +0000 (14:05 +0200)
committerJehan <jehan@girinstud.io>
Sun, 16 Jul 2017 13:25:34 +0000 (15:25 +0200)
It turns out Bionic (Android C library) has its own implementation of
pthread. With this minor change, babl is fully cross-compilable for
Android.

configure.ac

index 75c4c8757594a596d82fc4bbdf174fe626ec2943..fd18e3cc84865e232798b1059ae4984a2728a40e 100644 (file)
@@ -264,6 +264,12 @@ case "$target_or_host" in
     MATH_LIB=
     THREAD_LIB=
     ;;
+  *-*-android*)
+    os_win32=no
+    PATH_SEP=':'
+    DIR_SEP='/'
+    THREAD_LIB=
+    ;;
   *)
     os_win32=no
     PATH_SEP=':'